function load_rgb_table, n, _extra=ex
	loadct, n, _extra=ex
	tvlct, r, g, b, /get
	rgbtable=BINDGEN(3,256)
 	rgbtable[0,*]=r
    rgbtable[1,*]=g
    rgbtable[2,*]=b
    return, rgbtable
end